home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97a.txt / 000129_icon-group-sender _Tue Jun 10 22:30:39 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  1KB

  1. Received: from kingfisher.CS.Arizona.EDU by cheltenham.cs.arizona.edu; Tue, 10 Jun 1997 09:12:46 MST
  2. Received: by kingfisher.CS.Arizona.EDU; (5.65v3.2/1.1.8.2/08Nov94-0446PM)
  3.     id AA08156; Tue, 10 Jun 1997 09:12:46 -0700
  4. To: icon-group@cs.arizona.edu
  5. Date: Tue, 10 Jun 1997 22:30:39 +1000
  6. From: Stuart.Robinson@anu.edu.au (Stuart Robinson)
  7. Message-Id: <Stuart.Robinson-1006972230400001@asianstmg-221.anu.edu.au>
  8. Organization: ANU
  9. Sender: icon-group-request@cs.arizona.edu
  10. Subject: searching with variables
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12. Status: RO
  13. Content-Length: 784
  14.  
  15. A quick question.  If you wanted to use the function find() to search for
  16. a particular strings of characters, how would it be possible to define
  17. character variables?  For example, suppose you want to search for the
  18. following sequences
  19.  
  20. al
  21. el
  22. il
  23. ol
  24. ul
  25.  
  26. which are really just Vl (where V stands for a vowel).  Could you simply
  27. define a character set for vowels (V := 'aeiou') and then refer to that
  28. character set in the find() function?  If so, what would it look like?  I
  29. tried something like the following and it didn't work.
  30.  
  31. find( V || "l")
  32.  
  33. I realise it's a pretty trivial task but I don't have the manual at the
  34. moment and I'd like an answer within the next couple of days.  Thanks in
  35. advance.
  36.  
  37. -- 
  38. Stuart Robinson <Stuart.Robinson@anu.edu.au>
  39. The Australian National University
  40.